﻿using System.Speech.Synthesis;

namespace Pna.Buttler.Speech.Synthesis
{
    public class SpeechSynthesizerEngine
    {
        /// <summary>
        /// The synth.
        /// </summary>
        private readonly SpeechSynthesizer synth;
        
        public SpeechSynthesizerEngine()
        {
            this.synth = new SpeechSynthesizer();
        }

        /// <summary>
        /// The talk action.
        /// </summary>
        /// <param name="talk">
        /// The talk.
        /// </param>
        public void Talk(string talk)
        {
            this.synth.Speak(talk);
        }
    }
}
